<template>
    <div class="manage_page fillcontain">
        <el-row style="height: 100%;">
<!--            <el-col :span="4" style="min-height: 100%; background-color: #324057;">-->
            <el-col :span="4" style="min-height: 100%; background-color: white;">
                <el-menu :default-active="defaultActive" style="min-height: 100%;" theme="dark" router>
                    <el-menu-item index="home"><i class="el-icon-menu"></i>首页</el-menu-item>
                    <el-submenu index="2">
                        <template slot="title"><i class="el-icon-document"></i>用户管理</template>
                        <el-menu-item index="userList">用户列表</el-menu-item>
                        <el-menu-item index="addAdmin">添加管理员</el-menu-item>
                    </el-submenu>
                    <el-submenu index="3">
                        <template slot="title"><i class="el-icon-plus"></i>课程管理</template>
                        <el-menu-item index="courseList">课程列表</el-menu-item>
                        <el-menu-item index="addCourse">录入课程</el-menu-item>
                    </el-submenu>
                    <el-submenu index="4">
                        <template slot="title"><i class="el-icon-plus"></i>大纲管理</template>
                        <el-menu-item index="outlineList">大纲列表</el-menu-item>
                        <el-menu-item index="outlineUnCheck">待审核</el-menu-item>
                    </el-submenu>
                    <el-submenu index="5">
                        <template slot="title"><i class="el-icon-star-on"></i>文章管理</template>
                        <el-menu-item index="articleList">文章列表</el-menu-item>
                        <el-menu-item index="articleTj">文章统计</el-menu-item>
                        <!-- <el-menu-item index="newMember">用户数据</el-menu-item> -->
                    </el-submenu>
                    <el-submenu index="6">
                        <template slot="title"><i class="el-icon-edit"></i>情感分析-情感词典</template>
                        <!-- <el-menu-item index="uploadImg">上传图片</el-menu-item> -->
                        <el-menu-item index="vueEdit">文本编辑</el-menu-item>
                    </el-submenu>
                    <el-submenu index="7">
                        <template slot="title"><i class="el-icon-setting"></i>情感分析-贝叶斯</template>
                        <el-menu-item index="adminSet">管理员设置</el-menu-item>
                        <!-- <el-menu-item index="sendMessage">发送通知</el-menu-item> -->
                    </el-submenu>
                </el-menu>
            </el-col>
            <el-col :span="20" style="height: 100%;overflow: auto;">
                <keep-alive>
                    <router-view></router-view>
                </keep-alive>
            </el-col>
        </el-row>
    </div>
</template>

<script>
    export default {
        computed: {
            defaultActive: function () {
                return this.$route.path.replace('/', '');
            }
        },
    }
</script>


<style lang="less" scoped>
    @import '../style/mixin';

    .manage_page {

    }
</style>
